﻿using System;

using System.Collections.Generic;
using System.Text;

namespace ProjetoFase2
{
    public class UserLogin
    {
        private static string username = "";
        private static string password = "";
        private static string name = "";
        private static string district = "";
        private static int accessLevel = -1;

        public static string Username { 
            get {
                return username;
            } 
            set {
                username = value;        
            } 
        }

        public static string District
        {
            get
            {
                return district;
            }
            set
            {
                district = value;
            }
        }

        public static string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        public static string Password {
            get {
                return password;
            }
            set {
                password = value;
            }
        }

        public static int AccessLevel
        {
            get
            {
                return accessLevel;
            }
            set
            {
                accessLevel = value;
            }
        }

        // proceeds to the logout, clearing the user data
        public static void Logout()
        {
            password = "";
            username = "";
            accessLevel = -1;
            name = "";
        }
    }
}
